package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.ExamExam;
import com.example.demo.entity.ExamExamDetail;
import com.example.demo.entity.ExamList;
import com.example.demo.service.ExamExamService;
import com.example.demo.mapper.ExamExamMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 18364
* @description 针对表【exam_exam】的数据库操作Service实现
* @createDate 2023-09-18 11:20:04
*/
@Service
public class ExamExamServiceImpl extends ServiceImpl<ExamExamMapper, ExamExam>
    implements ExamExamService{
    @Autowired
    ExamExamMapper examExamMapper;
    @Override
    public List<ExamList> selectExamList() {
        List<ExamList> list =examExamMapper.selectExamList();
        return list;
    }

    @Override
    public List<ExamList> selectHistoryList(String userId) {
        List<ExamList> list =examExamMapper.selectHistoryList(userId);
        return list;
    }

    @Override
    public void deleteById(Integer id) {
        examExamMapper.deleteById(id);
    }

    @Override
    public ExamExam selectById(Integer id) {
        ExamExam examExam=examExamMapper.selectById(id);
        return examExam;
    }

    @Override
    public List<ExamList> selectExam() {
        List<ExamList> list=examExamMapper.selectExam();
        return list;
    }

    @Override
    public List<ExamList> selectByGroup(Integer id) {
        List<ExamList> examExam=examExamMapper.selectByGroup(id);
        return examExam;
    }
}




